import request from '@/utils/request'


// 查询动物审批列表
export function listAnimalExam(query) {
  return request({
    url: '/feedingRecord/animalExam/list',
    method: 'get',
    params: query
  })
}
// 审批归档操作
export function examAnimalGoDOwn(animalApplicationId) {
  return request({
    url: '/feedingRecord/animalExam/examAnimalGoDOwn' + animalApplicationId,
    method: 'get'
  })
}
// 退回审批操作
export function examAnimalback(animalApplicationId) {
  return request({
    url: '/feedingRecord/animalExam/examAnimalback' + animalApplicationId,
    method: 'get'
  })
}

// 通过审批操作
export function examAnimalPass(animalApplicationId) {
  return request({
    url: '/feedingRecord/animalExam/' + animalApplicationId,
    method: 'get'
  })
}

// 新增动物审批
export function addAnimalExam(data) {
  return request({
    url: '/feedingRecord/animalExam',
    method: 'post',
    data: data
  })
}

// 修改动物审批
export function updateAnimalExam(data) {
  return request({
    url: '/feedingRecord/animalExam',
    method: 'put',
    data: data
  })
}

// 删除动物审批
export function delAnimalExam(animalApplicationId) {
  return request({
    url: '/feedingRecord/animalExam/' + animalApplicationId,
    method: 'delete'
  })
}
